package com.dongdongshop.controller;

import com.dongdongshop.data.Result;
import com.dongdongshop.em.ConstantEnum;
import com.dongdongshop.pojo.TbUser;
import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class IndexController {

    @RequestMapping(path = {"/","/index"})
    public String index(){
        return "index";
    }

    @RequestMapping("/toLogin")
    public String login(){
        return "login";
    }

    @RequestMapping("/getReg")
    public String getReg(){
        return "register";
    }

    @RequestMapping("getCartInfo")
    public String getCartInfo(){
        return "cart";
    }

    @RequestMapping("toOrderList")
    public String toOrder(){
        return "getOrderInfo";
    }

    // 我的东东商城
    @RequestMapping("getAddress")
    public String getAddress(){
        return "home-index";
    }
//    // 地址管理
    @RequestMapping("toSettAdd")
    public String toSettAdd(){
        return "home-setting-address";
    }

    @RequestMapping("/trade")
    public String trade(){
        return "trade";
    }

    @RequestMapping("/orderSend")
    public String orderSend(){
        return "home-order-send";
    }
}
